package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.MesProcessExecDetailsMapper;
import com.ruoyi.mes.domain.MesProcessExecDetails;
import com.ruoyi.mes.service.IMesProcessExecDetailsService;

import javax.annotation.Resource;

/**
 * 工艺执行-明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-15
 */
@Service
public class MesProcessExecDetailsServiceImpl implements IMesProcessExecDetailsService 
{
    @Resource
    private MesProcessExecDetailsMapper mesProcessExecDetailsMapper;

    /**
     * 查询工艺执行-明细
     * 
     * @param processExecDetailUuid 工艺执行-明细主键
     * @return 工艺执行-明细
     */
    @Override
    public MesProcessExecDetails selectMesProcessExecDetailsByProcessExecDetailUuid(String processExecDetailUuid)
    {
        return mesProcessExecDetailsMapper.selectMesProcessExecDetailsByProcessExecDetailUuid(processExecDetailUuid);
    }

    /**
     * 查询工艺执行-明细列表
     * 
     * @param mesProcessExecDetails 工艺执行-明细
     * @return 工艺执行-明细
     */
    @Override
    public List<MesProcessExecDetails> selectMesProcessExecDetailsList(MesProcessExecDetails mesProcessExecDetails)
    {
        return mesProcessExecDetailsMapper.selectMesProcessExecDetailsList(mesProcessExecDetails);
    }

    /**
     * 新增工艺执行-明细
     * 
     * @param mesProcessExecDetails 工艺执行-明细
     * @return 结果
     */
    @Override
    public int insertMesProcessExecDetails(MesProcessExecDetails mesProcessExecDetails)
    {
        return mesProcessExecDetailsMapper.insertMesProcessExecDetails(mesProcessExecDetails);
    }

    /**
     * 修改工艺执行-明细
     * 
     * @param mesProcessExecDetails 工艺执行-明细
     * @return 结果
     */
    @Override
    public int updateMesProcessExecDetails(MesProcessExecDetails mesProcessExecDetails)
    {
        return mesProcessExecDetailsMapper.updateMesProcessExecDetails(mesProcessExecDetails);
    }

    /**
     * 批量删除工艺执行-明细
     * 
     * @param processExecDetailUuids 需要删除的工艺执行-明细主键
     * @return 结果
     */
    @Override
    public int deleteMesProcessExecDetailsByProcessExecDetailUuids(String[] processExecDetailUuids)
    {
        return mesProcessExecDetailsMapper.deleteMesProcessExecDetailsByProcessExecDetailUuids(processExecDetailUuids);
    }

    /**
     * 删除工艺执行-明细信息
     * 
     * @param processExecDetailUuid 工艺执行-明细主键
     * @return 结果
     */
    @Override
    public int deleteMesProcessExecDetailsByProcessExecDetailUuid(String processExecDetailUuid)
    {
        return mesProcessExecDetailsMapper.deleteMesProcessExecDetailsByProcessExecDetailUuid(processExecDetailUuid);
    }
}
